import { createRouter, createWebHistory } from 'vue-router'
import AppLayout from '../layouts/AppLayout.vue'

const routes = [
  {
    path: '/',
    component: AppLayout,
    children: [
      {
        path: '',
        name: 'home',
        component: () => import('../views/HomeView.vue')
      },
      {
        path: '/projects',
        name: 'projects',
        component: () => import('../views/UploadView.vue')
      },
      {
        path: '/model',
        name: 'model',
        component: () => import('../views/ModelView.vue')
      },
      {
        path: '/text-to-image',
        name: 'text-to-image',
        component: () => import('../views/TextToImageView.vue')
      },
      {
        path: '/workflow',
        name: 'workflow',
        component: () => import('../views/WorkflowView.vue')
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 